<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件
include_once("../controller/system.php");
?>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/<? echo $theme_folder ?>/user.css" rel="stylesheet" type="text/css"/>
    <?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <!--kindeditor编辑器-->
    <?php include_once('modules/mod-nkeditor.php'); ?>

</head>


<body>

<div id="topbar">
    <?php include ROOT_PATH_.'/controller/common/module/topbar.php'; ?>
</div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/module/sidebar.php'; ?>
        </div>


        <div id="content">
            <?php $page_title='系统设置';?>
            <?php include ROOT_PATH_.'/controller/common/module/mod-page-title.php'; ?>






                <blockquote class="layui-elem-quote">基础设置多数是对外使用的资料，请细心填写。</blockquote>
            <br/>


<div class="site detail-box layui-form">
<div class="detail-boxes">


    <form id="site_info" method="post"
          action="system-function.php" enctype="multipart/form-data"
          name="uploadfile">


        <fieldset class="layui-elem-field layui-field-title">
            <legend>基础设置</legend>
        </fieldset>


        <div class="layui-form-item logo">
            <label class="layui-form-label">网页icon：</label>

            <? if ($detail['logo']) { ?>
                <img src="../../../../uploadfiles/<? echo $theme_folder ?>/<? echo $detail['icon'] ?>" width="100"
                     style="border:solid 1px #ececec; background-color:#ececec"/>
            <? } else {
                echo "暂无资料";
            }
            ?>
        </div>


        <div class="layui-form-item layui-form-item logo">
            <label class="layui-form-label">上传文件：</label><input type="file" name="icon" onchange="fileChange(this);"/>
            <em class="explain">网页标签页显示图标28px*28px</em><br/><br/></div>



        <div class="layui-form-item logo">
            <label class="layui-form-label">LOGO：</label>

            <? if ($detail['logo']) { ?>
                <img src="../../../../uploadfiles/<? echo $theme_folder ?>/<? echo $detail['logo'] ?>" width="100"
                     style="border:solid 1px #ececec; background-color:#ececec"/>
            <? } else {
                echo "暂无资料";
            }
            ?>
        </div>


        <div class="layui-form-item layui-form-item logo">
            <label class="layui-form-label">上传文件：</label><input type="file" name="logo" onchange="fileChange(this);"/>
            <em class="explain">上传企业标志,建议尺寸300px*300px</em><br/><br/></div>





        <div class="layui-form-item site-name">
            <label class="layui-form-label">企业名称 : </label>
            <div class="layui-input-block">
                <input type="text" name="ai_name" autocomplete="off" class="layui-input"
                       value="<?php echo $detail['name'] ?>">
            </div>

        </div>


        <div class="layui-form-item introduce">
            <label class="layui-form-label">企业简介：</label>
            <div class="layui-input-block">
                <textarea id="ai_introduce" class="layui-textarea" name="ai_introduce" cols="150" rows="5"><?php echo $detail['introduce'] ?></textarea>
            </div>

        </div>



        <div class="function">
            <input type="submit" class="layui-btn" value="确认"/>
            <input type="reset" class="layui-btn" value="重置"/>
        </div>


    </form>


</div>
            </div>

            <!--content端點01-->
        </div>
        <!--maincontent端點01-->
        <br class="clearfloat"/>
    </div>
    <!--container端點01-->
</div>



<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>


</body>
</html>
